<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
</head>
<body>
    <!-- //学习VUE的主要标签 -->
    <div id="app">i </div>
    <script src="vue.js"></script>
    <script>
        new Vue({
            el:'#app',
            template:`
            <div>

            <div v-text='mytest'></div>
            </br>
            <div v-html='myhtml'></div>

            <div v-if='checkif'>test v-if</div>

            
            <ul v-for='item in array'>
            
                <li>{{item}}</li>
            </ul>

            </div>
            `,

        
            data:function () {
                return {
                    mytest:"i am test",
                    myhtml:"v-html",
                    checkif:false,
                    array:['basket ball','football','soccer ball']

                }
            }
        }
        )

    </script>
</body>
</html>